﻿<?xml version="1.0" encoding="utf-8" ?>
<Mapping xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<Entity type="InheritanceStrategiesModel:A" table="T_A">
		<Id field="ID" ><Generator name="guid" /></Id>
		<Attribute name="A_Prop" field="A_Prop" type="System.String" db-type="AnsiString" />
		<Reference name="Bs" entityChild="InheritanceStrategiesModel:B">
			<Rule parentField="ID" childTable="T_B" childField="FK_AID" />
		</Reference>
	</Entity>
	
	<Entity type="InheritanceStrategiesModel:B" table="T_B" discriminator="Type" discriminator-value="InheritanceStrategiesModel:B">
		<Id field="ID" ><Generator name="guid" /></Id>
		<Attribute name="B_Prop" field="B_Prop" type="System.String" db-type="String" />
	</Entity>
	
	<Entity type="InheritanceStrategiesModel:C" table="T_B" discriminator="Type" discriminator-value="InheritanceStrategiesModel:C"  copyNode="InheritanceStrategiesModel:B">
		<Id field="ID" ><Generator name="guid" /></Id>
		<Attribute name="C_Prop" field="C_Prop" type="System.String" db-type="String" />
	</Entity>
	
	<Entity type="InheritanceStrategiesModel:D" table="T_B" discriminator="Type" discriminator-value="InheritanceStrategiesModel:D"  copyNode="InheritanceStrategiesModel:B">
		<Id field="ID" ><Generator name="guid" /></Id>
		<Attribute name="D_Prop" field="D_Prop" type="System.String" db-type="String" />
	</Entity>
	
	<Entity type="InheritanceStrategiesModel:E" table="T_B" discriminator="Type" discriminator-value="InheritanceStrategiesModel:E" copyNode="InheritanceStrategiesModel:C">
		<Id field="ID" ><Generator name="guid" /></Id>
		<Attribute name="E_Prop" field="E_Prop" type="System.String" db-type="String" />
	</Entity>
	
	<Entity type="InheritanceStrategiesModel:F" table="T_B" discriminator="Type" discriminator-value="InheritanceStrategiesModel:F" copyNode="InheritanceStrategiesModel:C">
		<Id field="ID" ><Generator name="guid" /></Id>
		<Attribute name="F_Prop" field="F_Prop" type="System.String" db-type="String" />
	</Entity>
	
	<Entity type="InheritanceStrategiesModel:G" table="T_G">
		<Id field="ID" ><Generator name="guid" /></Id>
		<Attribute name="G_Prop" field="G_Prop" type="System.String" db-type="String" />
		<Reference name="Cs" entityChild="InheritanceStrategiesModel:C">
			<Rule parentField="ID" childTable="T_B" childField="FK_GID" />
		</Reference>
	</Entity>
</Mapping>
